package Day09.Demo06;

public class PersonDemo {
    public static void main(String[] args) {
        method01();


    }

    public static void method01() {
        //设置成员变量的name和age
        Person p = new Person();//默认值：name=null   age=0
      //  System.out.println(p);
        p.setAge(100);
        p.setName("张三");


        //获取成员变量的name age
        System.out.println(p.getName()+" "+p.getAge());
    }
}
